<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0" name="viewport" />
    <meta content="yes" name="apple-mobile-web-app-capable" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
    <meta content="telephone=no" name="format-detection" />
    <title>商品分类</title>
    <script type="text/javascript" src="__dotnar_lib_base_url__/js/lib/require.min.js"></script>
    <script type="text/javascript" src="__dotnar_lib_base_url__/js/lib/loader.js"></script>
    <script type="text/javascript" src="/js/require.config.js"></script>
    <script type="text/javascript">
    require(["core"], function() {
        require(["./js/pages/classify", "./js/pages/top"], function(argument) {
            window.removeLoader();
        });
    });
    </script>
</head>

<body>
    <div style="display:none;" id="jSouperApp" class="_pc">
        {{#include "pages/default/top.html"}}
        <!-- nav-bar -->
        {{#include "./pages/default/nav-bar.html"}}
        <xmp>
            <div class="mainindex">
                <div class="classify">
                    {{#if $Cache.classify.list.length}}
                    <!-- 商品分类 -->
                    <div class="classifybox">
                        {{#each $Cache.classify.list}}
                        <a class="main {{($Top.$Cache.classify.mainClassify._id==classify._id)&&'focus'}}" href="#?main={{classify._id}}">
							{{classify.classify_name}}
						</a>&nbsp;&nbsp;&nbsp; {{/each}} {{#if $Cache.classify.childlist.length}}
                        <div class="secondbox">
                            {{#each $Cache.classify.childlist}}
                            <a class="second" href="#?main={{$Top.$Cache.classify.mainClassify._id}}&second={{_id}}">
								{{classify_name}}
							</a> {{/each}}
                        </div>
                        {{/if}}
                    </div>
                    <hr/>
                    <!-- 每页显示12个商品 -->
                    <div class="box">
                        <div class="title">
                            {{($Cache.classify.current_classify.classify_name||'所有商品')}}
                        </div>
                        <div class="goods">
                            {{#if $Cache.classify.goodslist.length}} {{#each $Cache.classify.goodslist}} {{#> "main-goods-test"}} {{/each}} {{#else}}
                            <p>此分类下没有任何商品</p>
                            {{/if}}
                        </div>
                    </div>
                    {{#else}}
                    <div class="classifybox">
                        <p>此商家还没有设置任何分类</p>
                    </div>
                    {{/if}}
                </div>
            </div>
        </xmp>
        {{#include "pages/default/bottom.html"}}
    </div>
</body>

</html>
